package com.bwie.common.constants;

/**
 * @description: 系统常量
 * @author DongZl
 */
public class Constants {
    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;
    public static final String SUCCESS_MSG = "操作成功";
    /**
     * 失败标记
     */
    public static final Integer ERROR = 500;
    public static final String ERROR_MSG = "操作异常";

    /**
     * 修改余额类型
     */
    public static final Integer ADD_BALANCE = 0;
    public static final Integer SUB_BALANCE = 1;

    /**
     * 抢红包分布式锁key
     */
    public static final String SNATCH_RED_PACKET_KEY = "snatch_red_packet_key:";

    /**
     * 抢红包成功发送通知的queue
     */
    public static final String SNATCH_SUCCESS_QUEUE = "snatchSuccessQueue";

    /**
     * 抢红包消息队列防止重复消费的key
     */
    public static final String SNATCH_SUCCESS_QUEUE_UUID = "snatch_success_queue_uuid:";
}
